Skip to content

Extend PVS Case List with Quoted Price and Ordered Price columns#3

Closed
Copilot wants to merge 2 commits into
mainfrom
copilot/extend-pvs-case-list-page
Closed

Extend PVS Case List with Quoted Price and Ordered Price columns#3
Copilot wants to merge 2 commits into
mainfrom
copilot/extend-pvs-case-list-page

Conversation

Copilot AI commented Jun 18, 2026

Copy link
Copy Markdown

The PVS Case List page lacked visibility into job pricing aggregates. This adds two calculated columns that sum active PVS Job entries per case, split by status.

Changes

  • New file: Prototyping/src/PVSCaseListExt.PageExt.alPageExtension 50100 extending "PVS Case List":
    • Quoted Price — sums PVS Job."Quoted Price" where Status = Quote and Active = true
    • Ordered Price — sums PVS Job."Quoted Price" where Status = Order and Active = true
    • Both fields use CalcSums for performance (SQL SUM / SIFT), are non-editable, and surface with ApplicationArea = All and descriptive tooltips

Key design note

PVS Job has no separate "Ordered Price" field — both columns aggregate the same "Quoted Price" field, differentiated by Status filter:

// Quoted Price column
PVSJob.SetRange(ID, Rec.ID);
PVSJob.SetRange(Status, PVSJob.Status::Quote);
PVSJob.SetRange(Active, true);
PVSJob.CalcSums("Quoted Price");

// Ordered Price column — same field, different status
PVSJob.SetRange(Status, PVSJob.Status::Order);
PVSJob.CalcSums("Quoted Price");
Original prompt

Extend PVS Case List page to show two new fields: Quoted Price and Ordered Price. These fields display, respectively, the sum of all active PVS Job entries for the case with Status = Quote and Status = Order. The implementation should:

  • Create a PageExtension for PVS Case List.
  • Add two fields in the layout for Quoted Price and Ordered Price.
  • Implement logic to calculate sums based on related jobs (Table PVS Job or equivalent) filtered by Case ID and Status (Quote/Order).
  • Ensure performance optimizations and correct ApplicationArea, Caption, and DataClassification.

Copilot AI changed the title [WIP] Extend PVS Case List to show quoted and ordered price fields Extend PVS Case List with Quoted Price and Ordered Price columns Jun 18, 2026
Copilot AI requested a review from basprintvis June 18, 2026 13:50
@basprintvis basprintvis deleted the copilot/extend-pvs-case-list-page branch June 18, 2026 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants